<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="./css/layui.css">
	<script type="text/javascript" src="./layui.js" ></script>

</head>
<body>
	<form action="" class="layui-form" >
		
	<input type="text" name="title" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">   
	<button class="layui-btn" lay-submit lay-filter="xbs">立即提交</button>

	



	</form>


	<script type="text/javascript">
	
	layui.use(["layer","form"], function(){


		 var layer = layui.layer;
		 var form = layui.form();
		// layer.alert('hello');
		// 
		// layer.confirm('您是如何看待前端开发？', {
		//   btn: ['重要','奇葩'] //按钮
		// }, function(){
		//   layer.msg('的确很重要', {icon: 1});
		// }, function(){
		//   layer.msg('也可以这样', {
		//     time: 20000, //20s后自动关闭
		//     btn: ['明白了', '知道了']
		//   });
		// });
	// layer.msg('玩命卖萌中', function(){
	// 	//关闭后的操作
	// 	});
	// 	layer.msg('玩命卖萌中', function(){
	// 	//关闭后的操作
	// 	});

	  form.on('submit(xbs)', function(data){
	    alert('888888');
	    return false;
	  });

		  
	}); 


	</script>
	
	<!-- <form class="layui-form" action="">
  

	  <div class="layui-form-item">
	   		 <div class="layui-input-block">
	      <input type="radio" name="sex" value="男" title="男">
      <input type="radio" name="sex" value="女" title="女" checked>
    </div>
		<div class="layui-form-item layui-form-text">


	</form> -->
	


	



	








</body>
</html>